package shiyl.use.springboot.config.fabric;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import lombok.Data;
import lombok.ToString;

import java.util.Map;

/**
 * Channel配置信息对象
 * @author shiyl
 */
@Data
@ToString
public class ChannelCfg {

    private String name ;
//    private Map<String,List<PeerCfg>> peers ;
    private Map<String,PeersCfg> peers ;
    private OrderersCfg orderers ;

    @Override
    public String toString(){
        Gson g = new GsonBuilder().create() ;
        return g.toJson(this) ;
    }
}
